package com.ncamc.pms.rest.api;

import com.ncamc.next.common.dto.ResponseResult;
import com.ncamc.pms.api.apis.KettleTransApi;
import com.ncamc.pms.core.service.KettleTransService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class KettleTransApiImpl implements KettleTransApi {

    @Autowired
    private KettleTransService kettleTransService;

    @Override
    public ResponseResult<String> runKettleProcessor(String kettleCode) {
        kettleTransService.runKettleProcessor(kettleCode);
        return ResponseResult.success("ok");
    }
}
